package com.yun.zf.common.admin.model.sys;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

@Data
public class DeptAddMo {

    @ApiModelProperty(value = "部门名称")
    @ExcelProperty(value = "部门名称")
    private String deptName;
    @ApiModelProperty(value = "负责人")
    @ExcelProperty(value = "负责人")
    private String leader;

    @ApiModelProperty(value = "联系电话")
    @ExcelProperty(value = "联系电话")
    private String phone;
    @ApiModelProperty(value = "邮箱")
    @ExcelProperty(value = "邮箱")
    private String email;

    @ApiModelProperty(value = "部门状态")
    @ExcelProperty(value = "部门状态")
    private int status;
    @ApiModelProperty(value = "上级部门id")
    @ExcelProperty(value = "上级部门id")
    @NotNull(message = "上级部门不能为空，一层为0")
    private Long parentId;
    @ApiModelProperty(value = "市级代码")
    @NotNull(message = "市级代码不能为空")
    @ExcelProperty(value = "市级代码")
    private  Long cityCode;
    @ApiModelProperty(value = "省级区划代码")
    @NotNull(message = "省级代码不能为空")
    @ExcelProperty(value = "省级区划代码")
    private Long provinceCode;

}
